
#include "precomp.h"
#include "program.h"
#include "Tgame.h"
#include <ClanLib/application.h>

int Program::main(const std::vector<CL_String> &args)
{
	CL_ConsoleWindow console("Console", 80, 160);
	try
	{
		CL_SetupCore setup_core;
		CL_SetupDisplay setup_display;
		CL_SetupGL1 setup_gl1;
		CL_SetupSound setup_sound;
		CL_SetupNetwork setup_network;
		Tgame app;
		app.start(args);

	}
	catch(CL_Exception &exception)
	{
		
		CL_Console::write_line("Exception: " + exception.message);
		console.display_close_message();

		return -1;
	}
	return 0;
}
CL_ClanApplication clanapp(&Program::main);